#!/bin/sh

GIT_VERSION=$1

sudo apt-get build-dep git-core && sudo apt-get install libssl-dev

wget http://kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz

tar zxvf git-$GIT_VERSION.tar.gz

cd git-$GIT_VERSION/

./configure --prefix=/usr

make && sudo make install

